package com.my.chapter2;

public class practice8 {
    public static void main(String[] args) {
        Cup c1 = new Cup();
        c1.num++;
        Cup c2 = new Cup();
        c2.num++;
        Cup c3 = new Cup();
        c3.num++;
        System.out.println(c1.num);
        System.out.println(c2.num);
        System.out.println(c3.num);
    }
}

class Cup{
    static int num=0;
}
